package com.alexander.app2;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.alexander.annotation.ARouter;
import com.alexander.annotation_api.RouterManager;

@ARouter(path = "/app/secondActivity")
public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        findViewById(R.id.button).setOnClickListener(v -> {
            RouterManager.getInstance()
                    .navigation(SecondActivity.this, "/app/thirdActivity");
        });
    }
}